"use strict";
//1. 布尔类型
// let b = true;
let b;
b = true;
b = false;
b = !100;
// b = 100;// 不能将类型“number”分配给类型“boolean”。
let b2 = true;
b2 = false;
// b2 = 'string';
// b2 = {};
//2. 数字类型
let n;
n = 100;
// n = 'love';
// n = '200';
n = 0b1010; // 二进制 0b
n = 0o777; // 八进制 0o
n = 521; // 十进制
n = 0x1221; // 十六进制 0x
n = 1 + 200;
n = 2 * 200;
let n2 = 369;
//3. 字符串类型
let str = 'loveyou';
let str2 = "imissyou";
let str3 = `ilikeyou`;
//4. 字面量
// let host: 'localhost';
// host = 'localhost';
// // host = '912';
// let port: 8080 = 8080;
// let type: 1 | 2 | 3;
// type = 1;
// type = 2;
// type = 4;
//5. any  任意
// let a: any;
// a = 100;
// a = 'loveyou';
// a = {};
//6. void 空的
// function fn():void{
// }
//7. object 类型
// let o:object;
// o = {};
// o = () => {}
// o = [];
//8. 数组
// let arr: number[] = [20, 1, 18, 0x256];
// let arr2: Array<string>;
// arr2 = ['a','b', "xxx"];
// arr2[0] //TS 知道这是一个字符串类型的数据
// arr[0]
//9. 元组
let t;
t = ['张三', 18, false];
let t2 = ['李四', 28, true];
let t3;
t3 = [['张三', 18, false], ['李四', 28, true]];
//10. 枚举类型
var Gender;
(function (Gender) {
    Gender["Female"] = "\u5973";
    Gender["Male"] = "\u7537";
    Gender["Secret"] = "\u4FDD\u5BC6";
})(Gender || (Gender = {}));
var Week;
(function (Week) {
    Week["Monday"] = "\u793C\u62DC\u4E00";
    Week["Tuesday"] = "\u793C\u62DC\u4E8C";
    Week["Wednesday"] = "\u793C\u62DC\u4E09";
    Week["Thursday"] = "\u793C\u62DC\u56DB";
    Week["Friday"] = "\u793C\u62DC\u4E94";
    Week["Saturday"] = "\u793C\u62DC\u516D";
    Week["Sunday"] = "\u793C\u62DC\u65E5";
})(Week || (Week = {}));
//保存某个用户的性别
let gender = Gender.Female;
let week = Week.Wednesday;
